import request from '@/utils/request'

// 查询库存统计列表
export function listMonth(query) {
  return request({
    url: '/wm/stock/list',
    method: 'get',
    params: query
  })
}

// 查询库存统计详细
export function getMonth(id) {
  return request({
    url: '/wm/stock/' + id,
    method: 'get'
  })
}

// 新增库存统计
export function addMonth(data) {
  return request({
    url: '/wm/stock',
    method: 'post',
    data: data
  })
}

// 修改库存统计
export function updateMonth(data) {
  return request({
    url: '/wm/stock',
    method: 'put',
    data: data
  })
}

// 删除库存统计
export function delMonth(id) {
  return request({
    url: '/wm/stock/' + id,
    method: 'delete'
  })
}
